﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SimulationPTSystem.DAL
{
    public class ItemBank : DALObjectBase
    {
        [Key]
        public int ItemBankId { get; set; }
        [Display(Name = "题目类型")]
        public string ItemGenre { get; set; }
        [Display(Name = "认知任务")]
        public string TaskKind { get; set; }
        [Display(Name = "题目要求")]
        public string QHead { get; set; }   //图片或者文字
        [Display(Name = "题项")]
        public byte[] QBody { get; set; }
        [Display(Name = "备选项")]
        public string QOption { get; set; }

        [Display(Name = "正确答案")]
        public string QAnswer { get; set; }
        public string QAddition { get; set; }

        public string QPathVideoOrPics { get; set; }

        public ItemBank Clone()
        {
            return new ItemBank()
            {
                ItemBankId = this.ItemBankId,
                ItemGenre = this.ItemGenre,
                TaskKind = this.TaskKind,
                QHead = this.QHead,
                QBody = this.QBody,
                QOption = this.QOption,
                QAnswer = this.QAnswer,
                QAddition = this.QAddition,
                QPathVideoOrPics = this.QPathVideoOrPics
            };
        }

    }

    public class ZoneItemBank : DALObjectBase
    {
        [Key]
        public int ZoneItemBankId { get; set; }
        public string ZoneCode { get; set; }   //对应选区编号
        public string QuesIndexes { get; set; }
    }
    public class ZoneResponseSum
    {
        public int ZoneResponseSumId { get; set; }
        public string ZoneCode { get; set; }
        public long TraineeId { get; set; }
        public DateTime StartTime { get; set; }
        public DateTime EndTime { get; set; }
        public int QustionCount { get; set; }
        public string ResponseSumString { get; set; }
        public string Task1RightRate { get; set; }
        public string Task2RightRate { get; set; }
        public string Task3RightRate { get; set; }
        public string Task4RightRate { get; set; }
        public string TotalRightRate { get; set; }

    }


    public class AnswerZoneSummary : DALObjectBase
    {
        public int AnswerZoneSummaryId { get; set; }
        public string UUId { get; set; }   //项目id  123456

        public string Code { get; set; }      //用户编号  用户信息

        public int ZoneCode { get; set; }  //0 基础  1 综合       
        public DateTime StartTime { get; set; }
        public DateTime EndTime { get; set; }
        public TimeSpan TrainingDuration { get; set; }  //项目时长 


        public float RotationRightRate { get; set; }
        public float RotationResponseTime { get; set; }
        public float MemoryRightRate { get; set; }
        public float MemoryResponseTime { get; set; }
        public float RetrievalRightRate { get; set; }
        public float RetrievalResponseTime { get; set; }
        public float CompareRightRate { get; set; }
        public float CompareResponseTime { get; set; }

        public float TotalRightRate { get; set; }
        public float TotalResponseTime { get; set; }

    }
}
